//
//  ViewController.m
//  homeWorkFor29
//
//  Created by 苗钧豪 on 16/8/23.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "ViewController.h"
#import "pushTransitionAnimation.h"
#import "popTransitionAnimation.h"
@interface ViewController ()<UINavigationControllerDelegate>
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *biu;

@end

@implementation ViewController
- (void)viewDidAppear:(BOOL)animated {
    [UIView animateWithDuration:50 animations:^{
        self.biu.priority = 999;
    } completion:^(BOOL finished) {
        [self.view layoutIfNeeded];
    }];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:0];
    self.navigationController.navigationBar.shadowImage = [UIImage new];
//    [self.navigationItem setLeftBarButtonItem:[[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:@selector(back)]];
//    self.navigationItem.hidesBackButton = YES;
    
}
//- (void)back {
//    [self.navigationController popViewControllerAnimated:YES];
//}
//- (nullable id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
//                                            animationControllerForOperation:(UINavigationControllerOperation)operation
//                                                         fromViewController:(UIViewController *)fromVC
//                                                           toViewController:(UIViewController *)toVC  NS_AVAILABLE_IOS(7_0) {
//    if (operation == UINavigationControllerOperationPush) {
//        pushTransitionAnimation *push = [pushTransitionAnimation new];
//        return push;
//    } else
//    if (operation == UINavigationControllerOperationPop) {
//        popTransitionAnimation *pop = [popTransitionAnimation new];
//        return pop;
//    } else {
//        return nil;
//    }
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
